package stub;

import static org.mockito.Mockito.when;

import org.apache.commons.net.ftp.FTPClient;

/**
 * 
 * @author Beanstao@gmail.com 2013年11月18日
 */
public class FTPClientConnectStub
{
	public static void disConnect(final FTPClient mockedFTPClient)
	{
		when(mockedFTPClient.isConnected()).thenReturn(false);
	}

	public static void connect(final FTPClient mockedFTPClient)
	{
		when(mockedFTPClient.isConnected()).thenReturn(true);
	}
}
